import { Application } from 'egg';

export default (app: Application) => {
    const { STRING, CHAR } = app.Sequelize;
    const model = app.model.define('Evaluate', {
        evaluate_id: { type: CHAR(32), primaryKey: true },//主键值
        employee_id: CHAR(32),//评价人id
        target_employee_id: CHAR(32),//被评价人id
        evaluate_content: STRING(50),//评价内容
        evaluate_picture: STRING(400),//图片
        created_by: CHAR(32),//创建人
        updated_by: CHAR(32),//更新人
        is_delete: CHAR(1),//标识是否删除（0：否，1：是）
    }, { tableName: 't_evaluate' });
    return model;
}

export class Evaluate {
    evaluate_id: string;
    employee_id: string;
    target_employee_id: string;
    evaluate_content: string;
    evaluate_picture: string;
    created_by: string;
    updated_by: string;
    is_delete: string;
}